/*
 * @Description: 
 * @Author: zhihong deng
 * @Date: 2021-08-17 17:09:47
 * @LastEditors: zhihong deng
 * @LastEditTime: 2021-09-11 17:17:57
 */
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
const path = require('path')

// https://vitejs.dev/config/
export default defineConfig({
  // 配置自动识别src路径下的路由
  resolve: {
    alias: {
      '@': path.resolve(__dirname, './src')
    }
  },
  server: {
    host:'localhost',
    port:6060,
    proxy:{
      '/api':{
        target: "http://localhost:3000"
      }
    }
  },
  plugins: [vue()]
})
